package com.anzia.vueblog.common.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 *@ClassName LoginDto
 *@Description
 *@Author Anzia.
 *@Date 2021/4/24 21:24
 *@Version 1.0
 **/
// 序列化保证数据传输完整性
@Data
public class LoginDto implements Serializable {

    @NotBlank(message = "账户不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;
}
